package com.springinaction.ch04.noargs;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import static org.junit.Assert.*;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = AudienceConfig.class)
public class AudienceConfigTest {

    @Autowired
    private Performance performance;
    @Autowired
    private Audience audience;

    @Test
    public void aopTest(){
        assertNotNull(performance);
        performance.perform();
    }

}
